#include <pic.h>
#include <htc.h> 
#include <stdio.h>
#include <stdlib.h>
#include "Init.h"
#include "SysClock.h"
#include "my_macros.h"
#include "App.h"
#include "Outputs.h"
#include "hardware.h"
//__CONFIG(FCMDIS & MCLRDIS & WDTDIS & BORDIS & UNPROTECT & PWRTEN & INTIO);
//__CONFIG(FCMDIS & DEBUGDIS & BORV21 & LVPDIS & MCLRDIS & WDTDIS & BORDIS & UNPROTECT & PWRTEN & INTIO);
__CONFIG( FCMEN_OFF & MCLRE_OFF & LVP_OFF & DEBUG_OFF & WDTE_OFF & FOSC_INTRC_NOCLKOUT);
//__CONFIG(2, BOR4V_BOR21V & WRT_256 );

//Em3wW8tF3hq3
void main ( void )
{
	Init_Device();

	for ( ; ; )
	{
		SysTime();
		//Drive_RF();
		App();
		Out_Drive();
	}
}

